CFLAGS = -Wall -I -g
EX=bin/
FIFO_RELEASE=tab

release_graph: fifo.o set-char/set-obj/set-bits.o graph.o fifo_errno.o
	gcc $(CFLAGS) $(EX)fifo.o set-char/set-obj/set-bits.o $(EX)graph.o $(EX)fifo_errno.o -o $(EX)release_graph


graph.o: graph.c graph.h
	gcc $(CFLAGS) -o $(EX)graph.o -c graph.c

release_test: fifo.o test_fifo.o
	gcc $(CFLAGS) $(EX)fifo.o $(EX)test_fifo.o -o $(EX)release_test

fifo_errno.o: fifo/fifo_errno.c fifo/fifo.h
	gcc $(CFLAGS) -o $(EX)fifo_errno.o -c fifo/fifo_errno.c

test_fifo.o: test_fifo.c
	gcc $(CFLAGS) -o $(EX)test_fifo.o -c test_fifo.c

fifo.o: fifo/fifo-$(FIFO_RELEASE)/fifo.c
	gcc $(CFLAGS) -o $(EX)fifo.o -c fifo/fifo-$(FIFO_RELEASE)/fifo.c

